﻿using System.ComponentModel.DataAnnotations;

namespace K9Nano.Application.Organization;

public class OrganizationUnitEditDto
{
    public long Id { get; set; }

    /// <summary>
    /// 上级组织ID
    /// </summary>
    [Display(Name = "上级组织ID")]
    public long? ParentId { get; set; }

    /// <summary>
    /// 组织名称
    /// </summary>
    [Display(Name = "组织名称")]
    [Required(ErrorMessage = "{0}不能为空")]
    public string DisplayName { get; set; }

    /// <summary>
    /// 组织标签
    /// </summary>
    [Display(Name = "组织标签")]
    [StringLength(50)]
    public string? Tag { get; set; }

    [Display(Name = "扩展数据")]
    [StringLength(255)]
    public string? Extension { get; set; }
}